﻿<%@ Page Title="" Language="C#" MasterPageFile="~/Site.Master" AutoEventWireup="true" CodeBehind="AddHeadHunter.aspx.cs" Inherits="CV_Projekt.FormAddHeadHunter" %>

<asp:Content ID="Content1" ContentPlaceHolderID="MenuContent" runat="server">
    <asp:HyperLink ID="HyperLinkSuperAdmin" runat="server" NavigateUrl="~/SuperAdmin.aspx">Ta bort Headhunter / Arbetssökande</asp:HyperLink>
</asp:Content>
<asp:Content ID="Content2" ContentPlaceHolderID="MainContent" runat="server">
    <div id="ahh_div_headhunterinfo"  class="div_float_left">
        <div>
            <h2>Skapa ny Headhunter konto</h2>
        </div>
        <div>
            <div class="ahh_div_label">
                <asp:Label ID="LabelUserName" runat="server" Text="Användarnamn:"></asp:Label>
            </div>
            <div class="ahh_div_textbox">
                <asp:TextBox ID="TextBoxUserName" runat="server"></asp:TextBox>
                <asp:RequiredFieldValidator ID="RequiredFieldValidatorUserName" runat="server" ControlToValidate="TextBoxUserName" ErrorMessage="Användarnamn saknas">*</asp:RequiredFieldValidator>
                <asp:CustomValidator ID="CustomValidatorUserNameAlreadyExists" runat="server" OnServerValidate="IsUserNameAvailable_ServerValidate" ControlToValidate="TextBoxUserName" ErrorMessage="Användarnamnet är upptaget" ForeColor="Red">*</asp:CustomValidator>
            </div>
        </div>
        <div>
            <div class="ahh_div_label">
                <asp:Label ID="LabelPassword" runat="server" Text="Lösenord:"></asp:Label>
            </div>
            <div class="ahh_div_textbox">
                <asp:TextBox ID="TextBoxPassword" runat="server" TextMode="Password"></asp:TextBox>
                <asp:RequiredFieldValidator ID="RequiredFieldValidatorPassword" runat="server" ControlToValidate="TextBoxPassword" ErrorMessage="Lösenord saknas">*</asp:RequiredFieldValidator>
            </div>
        </div>
        <div>
            <div class="ahh_div_label">
                <asp:Label ID="LabelHeadHunterName" runat="server" Text="Headhunternamn:"></asp:Label>
            </div>
            <div class="ahh_div_textbox">
                <asp:TextBox ID="TextBoxHeadHunterName" runat="server"></asp:TextBox>
                <asp:RequiredFieldValidator ID="RequiredFieldValidatorHeadHunterName" runat="server" ErrorMessage="Headhunternamn saknas" ControlToValidate="TextBoxHeadHunterName">*</asp:RequiredFieldValidator>
            </div>
        </div>
        <div>
            <div class="ahh_div_label">
                <asp:Label ID="LabelStreet" runat="server" Text="Adress:"></asp:Label>
            </div>
            <div class="ahh_div_textbox">
                <asp:TextBox ID="TextBoxAddress" runat="server"></asp:TextBox>
                <asp:RequiredFieldValidator ID="RequiredFieldValidatorAddress" runat="server" ControlToValidate="TextBoxAddress" ErrorMessage="Gatuadress saknas">*</asp:RequiredFieldValidator>
            </div>
        </div>
        <div>
            <div class="ahh_div_label">
                <asp:Label ID="LabelPostalCode" runat="server" Text="Postnummer:"></asp:Label>
            </div>
            <div class="ahh_div_textbox">
                <asp:TextBox ID="TextBoxPostalCode" runat="server"></asp:TextBox>
                <asp:RequiredFieldValidator ID="RequiredFieldValidatorPostalCode" runat="server" ControlToValidate="TextBoxPostalCode" ErrorMessage="Postnummer saknas">*</asp:RequiredFieldValidator>
                <asp:RegularExpressionValidator ID="RegularExpressionValidator1" runat="server" ControlToValidate="TextBoxPostalCode" ErrorMessage="Felaktigt postnummer" ForeColor="Red" ValidationExpression="\d{5}|\d{3} \d{2}">*</asp:RegularExpressionValidator>
            </div>
        </div>
        <div>
            <div class="ahh_div_label">
                <asp:Label ID="LabelCity" runat="server" Text="Ort:"></asp:Label>
            </div>
            <div class="ahh_div_textbox">
                <asp:TextBox ID="TextBoxCity" runat="server"></asp:TextBox>
                <asp:RequiredFieldValidator ID="RequiredFieldValidatorCity" runat="server" ControlToValidate="TextBoxCity" ErrorMessage="Ort saknas">*</asp:RequiredFieldValidator>
            </div>
        </div>
        <div>
            <div class="ahh_div_label">
                <asp:Label ID="LabelCountry" runat="server" Text="Land:"></asp:Label>
            </div>
            <div class="ahh_div_textbox">
                <asp:TextBox ID="TextBoxCountry" runat="server"></asp:TextBox>
                <asp:RequiredFieldValidator ID="RequiredFieldValidatorCountry" runat="server" ControlToValidate="TextBoxCountry" ErrorMessage="Land saknas">*</asp:RequiredFieldValidator>
            </div>
        </div>
        <div>
            <div class="ahh_div_label">
                <asp:Label ID="LabelEmail" runat="server" Text="Email:"></asp:Label>
            </div>
            <div class="ahh_div_textbox">
                <asp:TextBox ID="TextBoxEmail" runat="server" TextMode="Email"></asp:TextBox>
                <asp:RequiredFieldValidator ID="RequiredFieldValidatorEmail" runat="server" ControlToValidate="TextBoxEmail" ErrorMessage="Email saknas">*</asp:RequiredFieldValidator>
            </div>
        </div>
        <div>
            <div class="ahh_div_label">
                <asp:Label ID="LabelPhone" runat="server" Text="Telefonnummer:"></asp:Label>
            </div>
            <div class="ahh_div_textbox">
                <asp:TextBox ID="TextBoxPhone" runat="server"></asp:TextBox>
                <asp:RequiredFieldValidator ID="RequiredFieldValidatorPhone" runat="server" ControlToValidate="TextBoxPhone" ErrorMessage="Telefonnummer saknas">*</asp:RequiredFieldValidator>
            </div>
        </div>
        <div>
            <asp:Button ID="ButtonCreateAccount" runat="server" Text="Skapa Konto!" OnClick="ButtonCreateAccount_Click" />
            <asp:Label ID="LabelHeadHunterAdded" runat="server"></asp:Label>
        </div>
    </div>
    <div class="div_float_left">
        <asp:ValidationSummary ID="ValidationSummary1" runat="server" />
    </div>
</asp:Content>
